<template>
  <div class="mask-c">
    <div class="dialog">
      <div class="title-c">标题</div>
      <div class="content-c">
        <HelloWorldVue />
      </div>
    </div>
  </div>
</template>
<script setup lang=ts>
import { ref, onMounted } from 'vue'
import HelloWorldVue from '../components/HelloWorld.vue'

onMounted(() => {
  console.log('[ dialog ]')
})
</script>
<style scoped lang=scss>
  .mask-c {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.5);
    .dialog {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 300px;
      height: 300px;
      background-color: #fff;
      .title-c {
        height: 50px;
        line-height: 50px;
        text-align: center;
        background-color: #eee;
      }
      .content-c {
        height: 250px;
        background-color: #fff;
      }
    }
  }
</style>
